package com.huaxin.hxcloud.activity;

import com.huaxin.hxcloud.R;
import com.huaxin.hxcloud.find.view.InfoPagerFragment;
import com.huaxin.hxcloud.fragment.MyPagerFragment;
import com.huaxin.hxcloud.fragment.WorkPagerFragment;
import com.huaxindata.im.main.chathistory.MessageFragment;
import com.huaxindata.im.main.contactview.ContactFragment;

/**
 * Created by Administrator on 2016/9/7.
 */
public enum MainTab {

    INFO(0, R.string.main_tab_name_info, R.drawable.tab_icon_info,
            InfoPagerFragment.class),
    NEWS(1, R.string.main_tab_name_news, R.drawable.tab_icon_new,
            MessageFragment.class),

    WORK(2, R.string.main_tab_name_work, R.drawable.icon_home_wk_f,
            WorkPagerFragment.class),

    CONTACT(3, R.string.main_tab_name_contact, R.drawable.tab_icon_contact,
            ContactFragment.class),

    MY(4, R.string.main_tab_name_my, R.drawable.tab_icon_my,
            MyPagerFragment.class);


    private int idx;
    private int resName;
    private int resIcon;
    private Class<?> clz;

    private MainTab(int idx, int resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
